<script setup>
import { defineProps ,defineEmits} from 'vue';

defineProps({
  message:String
});

let emits = defineEmits(["getFromHeader","xxxxxx"])

let toApp=()=>{
  emits("getFromHeader","hello ,我是header组件")
}

</script>

<template>
  <div>
    欢迎你:{{ message }}
    <br>
    <button @click="toApp">向app传数据</button>
  </div>
  
</template>

<style scoped>

</style>
